import { constantRoutes } from '@/router/index.js'
export default {
  namespaced: true,
  state() {
    return {
      menuList: [...constantRoutes] // 放置路由信息：用户可以访问的页面
    }
  },
  mutations: {
    setMenuList(state, asyncMenuList) {
      state.menuList = [...constantRoutes, ...asyncMenuList]
    }
  }

}
